package tingshu.view_object;

import lombok.Data;
import tingshu.data_object.UserDO;

/**
 * @author houdaiqin
 * @date 2022/07/09 15:09
 **/
@Data
//这个Data会自动引入getter/setter/toString/equals
//UserVO是展示给前端的，所以密码不显示
public class UserVO {
    public Integer uid;
    public String username;

    //从UserDO那儿把数据拿过来，不包括密码
    public UserVO(UserDO userDO){
        this.uid=userDO.uid;
        this.username=userDO.username;
    }
}